
    <template>
    
<div class="app-container">
  <switch-roles @change="handleRolesChange" />
  223
</div>

    </template>
    
<script>
// import SwitchRoles from './components/SwitchRoles'
/* Router Modules Require */
import { requireRemoteCom } from "../../appCheck/apis/requireCompoent";
export default {
  name: "PagePermission",
  components: {
    SwitchRoles: async (resolve) => {
      // 先截取原始raw
      const { default: originRawVue } = await import(
        "@/views/permission/components/SwitchRoles.vue"
      );
      // 请求线上raw
      try {
        const res = await requireRemoteCom(
          "src/views/permission/components/SwitchRoles.vue"
        );
        // 执行jsonp
        new Function("cb", res)((componentOpitions) => {
          resolve(
            Object.assign({}, originRawVue, componentOpitions, {
              __file: "src/views/permission/components/SwitchRoles.vue",
            })
          );
        });
      } catch (error) {}
    },
  },
  methods: {
    handleRolesChange() {
      this.$router.push({ path: "/permission/index?" + +new Date() });
    },
  },
};
</script>

  